﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.PassStationRecordVMs
{
    public partial class PassStationRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._PassStationRecord._lineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.LineCode);
        [Display(Name = "_Model._PassStationRecord._materialCode")]
        public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.MaterialCode);
        [Display(Name = "_Model._PassStationRecord._materialName")]
        public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.MaterialName);
        [Display(Name = "_Model._PassStationRecord._materialVersion")]
        public ExcelPropety MaterialVersion_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.MaterialVersion);
        [Display(Name = "_Model._PassStationRecord._operationCode")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.OperationCode);
        [Display(Name = "_Model._PassStationRecord._orderCode")]
        public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.OrderCode);
        [Display(Name = "_Model._PassStationRecord._passBeginTime")]
        public ExcelPropety PassBeginTime_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.PassBeginTime);
        [Display(Name = "_Model._PassStationRecord._passEndTime")]
        public ExcelPropety PassEndTime_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.PassEndTime);
        [Display(Name = "_Model._PassStationRecord._passStatus")]
        public ExcelPropety PassStatus_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.PassStatus);
        [Display(Name = "_Model._PassStationRecord._scheduleCode")]
        public ExcelPropety ScheduleCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.ScheduleCode);
        [Display(Name = "_Model._PassStationRecord._snNumber")]
        public ExcelPropety SnNumber_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.SnNumber);
        [Display(Name = "_Model._PassStationRecord._stationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.StationCode);
        [Display(Name = "_Model._PassStationRecord._shipCode")]
        public ExcelPropety ShipCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.ShipCode);
        [Display(Name = "_Model._PassStationRecord._machineCode")]
        public ExcelPropety MachineCode_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.MachineCode);
        [Display(Name = "_Model._PassStationRecord._uploadflag")]
        public ExcelPropety Uploadflag_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.Uploadflag);
        [Display(Name = "_Model._PassStationRecord._userId")]
        public ExcelPropety UserId_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.UserId);
        [Display(Name = "_Model._PassStationRecord._userName")]
        public ExcelPropety UserName_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.UserName);
        [Display(Name = "_Model._PassStationRecord._isProduct")]
        public ExcelPropety IsProduct_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.IsProduct);
        [Display(Name = "_Model._PassStationRecord._reqType")]
        public ExcelPropety ReqType_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.ReqType);
        [Display(Name = "_Model._PassStationRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._PassStationRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._PassStationRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.CreateBy);
        [Display(Name = "_Model._PassStationRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<PassStationRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class PassStationRecordImportVM : BaseImportVM<PassStationRecordTemplateVM, PassStationRecord>
    {
            //import

    }

}